<!-- 解雇列表 -->
<template>
    <div class="page-box h100 display-flex czbj">
      <p class="title-label mb10">解雇列表</p>
      <dxtable
        :dataJson="dataJson"
        :portUrl="portUrl"
        :formJson="formJson"
        :qx="qx"
        ref="databale"
        :hidebj="true"
      ></dxtable>
    </div>
  </template>
  <script lang="ts" setup>
  import { Options } from "@vicons/ionicons5";
  import dxtable from "../../components/util/dxtable.vue";
  import sort from "../../components/util/sort.vue";
  import {
    dxget,
    dxpost,
    transferTimeYMDHm,
    dialog,
    dxdel,
  } from "../../util/index";
  import { NButton, NImage, NTag } from "naive-ui";
  import { h, ref, reactive, render } from "vue";
  const databale = ref();
  const dqobj = ref({});
  const initeer = () => {
    databale.value.initDataExpose();
  };
  
  let dataJson = [
    {
      title: "职位名称",
      key: "miansi.zwid",
      width: "",
      type: "select",
      options: [],
      search: true,
      istable: true,
      required: false,
      render: (row) => {
        return row.name;
      },
    },
    // {
    //   title: "试用期价格",
    //   key: "syqjg",
    //   width: "",
    //   search: false,
    //   istable: true,
    //   required: false,
    // },
    // {
    //   title: "薪资待遇",
    //   key: "xzdy",
    //   width: "",
    //   search: false,
    //   istable: true,
    //   required: false,
    // },
    // {
    //   title: "工作地点",
    //   width: "",
    //   search: false,
    //   istable: true,
    //   required: false,
    //   render: (row) => {
    //     return row.sheng + "-" + row.shi;
    //   },
    // },
    {
      title: "解雇人姓名",
      key: "miansi.uid",
      type: "select",
      options: [],
      search: true,
      istable: true,
      required: false,
      width: 150,
      render(row) {
        return row.uname;
      },
    },
    {
      title: "解雇人电话",
      key: "phone",
      search: false,
      istable: true,
      width: 150,
      required: false,
    },
    {
      title: "解雇时间",
      key: "lysj",
      width: 150,
    },{
      title: "工作地点",
      key: "lysj",
      render(row){
        return row.sheng+"-"+row.shi
     }
    },
     {
    title: "简历地址",
    width: 100,
    render(row) {
      return h(
        "span",
        {
          class: "ls sz",
          onClick() {
            open(row.jltext);
          },
        },
        "点击查看"
      );
    },
  },{
      title: "解雇时间",
      key: "cxzpsj",
      width: 150,
    },,{
      title: "解雇备注",
      key: "cxzpbz"
    },
    
  ];
  
  const qx = {
    DeletePermissionID: "23456", //删除
    EditPermissionIdentifier: "23456", // 编辑
    NewPermissionIdentifier: "23456", // 新建
    ViewPermissionID: "jyczhaopingck", // 查看
  }
  const portUrl = "jyc/miansi/miansi?miansi.luyong=3";
  
  let formJson = reactive([]);

  
  const getgetuserList = async () => {
    const { data }: any = await dxget("jyc/api/getuserList");
    dataJson[1].options = [
      {
        label: "全部",
        value: "",
      },
      ...data,
    ];
  };
  getgetuserList();
  
  const getzhiwei = async () => {
    const { data }: any = await dxget("jyc/api/getzhiwei");
    dataJson[0].options = [
      {
        label: "全部",
        value: "",
      },
      ...data,
    ];
  };
  getzhiwei();
  </script>
  <style scoped></style>
  